package com.groupsix.mapper;

import com.groupsix.entity.Dormitoryinfo;
import com.groupsix.entity.DormitoryinfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DormitoryinfoMapper {


    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("aName") String aName, @Param("sDormitoryid") Integer sDormitoryid,@Param("dDormbuilding") String dDormbuilding);
    //获取用户列表
    public List<Dormitoryinfo> getDormitoryinfoList(@Param("aName") String aName, @Param("sDormitoryid") Integer sDormitoryid, @Param("dDormbuilding") String dDormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    public int addDormitoryinfo(Dormitoryinfo dormitoryinfo);    //添加宿舍信息
    public int deleteDormitoryinfo(Integer dId);   //删除宿舍信息
    public int updateDormitoryinfo(Dormitoryinfo dormitoryinfo); //修改宿舍信息
    public Dormitoryinfo findDormitoryinfoById(Integer dId); //通过id查询宿舍信息

    public List<Dormitoryinfo> findDormitoryinfoStudent(Dormitoryinfo dormitoryinfo);//查询宿舍人员信息
    public List<Dormitoryinfo> getAll();




    int countByExample(DormitoryinfoExample example);

    int deleteByExample(DormitoryinfoExample example);

    int deleteByPrimaryKey(Integer dId);

    int insert(Dormitoryinfo record);

    int insertSelective(Dormitoryinfo record);

    List<Dormitoryinfo> selectByExample(DormitoryinfoExample example);

    Dormitoryinfo selectByPrimaryKey(Integer dId);

    int updateByExampleSelective(@Param("record") Dormitoryinfo record, @Param("example") DormitoryinfoExample example);

    int updateByExample(@Param("record") Dormitoryinfo record, @Param("example") DormitoryinfoExample example);

    int updateByPrimaryKeySelective(Dormitoryinfo record);

    int updateByPrimaryKey(Dormitoryinfo record);
}